﻿#region Version Info

/* ========================================================================
* 【功能概述】
* 
* 作者：Zhai Xianwen       时间：2012-3-29 14:33:49
* 邮箱 : zhaisky@163.com
* 
* 文件名：El5600Mib
* 版本：V1.0.1
*
* 修改者：           时间：              
* 修改说明：
* ========================================================================
*/

#endregion

using System.Collections.Generic;

namespace Epon.EponEl5600.Mib
{
    public class El5600Mib
    {
        public static readonly El5600Mib Instance = new El5600Mib();

        private readonly Dictionary<string, Model> _propertyModel = new Dictionary<string, Model>();

        private El5600Mib()
        {
            _propertyModel.Add("System", SystemInit());
        }

        public Model this[string name]
        {
            get { return _propertyModel[name]; }
        }

        public Dictionary<string, Model> PropertyModel
        {
            get { return _propertyModel; }
        }

        private static Model SystemInit()
        {
            var list = new List<Oid>
                           {
                               new Oid {Name = "", OidStr = "", Type = 1},
                               new Oid {Name = "", OidStr = "", Type = 1},
                               new Oid {Name = "", OidStr = "", Type = 1},
                               new Oid {Name = "", OidStr = "", Type = 1},
                               new Oid {Name = "", OidStr = "", Type = 1},
                               new Oid {Name = "", OidStr = "", Type = 1},
                               new Oid {Name = "", OidStr = "", Type = 1},
                               new Oid {Name = "", OidStr = "", Type = 1},
                               new Oid {Name = "", OidStr = "", Type = 1},
                               new Oid {Name = "", OidStr = "", Type = 1},
                               new Oid {Name = "", OidStr = "", Type = 1},
                               new Oid {Name = "", OidStr = "", Type = 1}
                           };

            var listGroup = new List<Group>
                                {
                                    new Group {Name = "", OidList = list, Operate = OperateType.Get}
                                };
            var model = new Model {Name = "500", Description = "System", GroupList = listGroup};
            return model;
        }
    }
}